package com.email.crontab.mysql.service.impl;

import com.email.crontab.mysql.service.MysqlService;
import com.email.crontab.mysql.dao.MysqlDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;


@Service
public class MysqlServiceImpl implements MysqlService {
    @Autowired
    private MysqlDao mysqlDao;

    @Override
    public List<Map<String, Object>> mysql() {
        return mysqlDao.mysql();
    }

    @Override
    public List<LinkedHashMap<String, Object>> mysql(String sql) {
        return mysqlDao.mysqlForSql(sql);
    }
}
